	 function confirma(rid,rpwd)
	{
		var submit = document.querySelector('#submit_message');
	    var uid = document.querySelector('#user_login');
	    var upwd = document.querySelector('#user_password');
	    var user =new Object();
	    var skip=document.getElementById("skipb");
		function check(rid,rpwd)
		{
		rid = uid.value;
		uid.value = '';
		rpwd = upwd.value;
		upwd.value = '';
		var count=Number(localStorage.getItem('user_count'));
		var checkemail=/^[0-9a-zA-Z]+(?:[\_\.\-][a-z0-9\-]+)*@[a-zA-Z0-9]+(?:[-.][a-zA-Z0-9]+)*\.[a-zA-Z]+$/i;
		for(var d=1;d<=count;d++)
		{
			var data = localStorage.getItem(d)||'[]';
			user = JSON.parse(data);
			if(checkemail.test(rid))
			{
			if(rid == user[2] && rpwd == user[5])
			{
					
				return true;
			}
			}else
			{
			if(rid == user[1] && rpwd == user[5])
			{
				return true;
			}
			}
			}
			return false;
	   }
		var tag = check(rid,rpwd);
		
		
		if(tag)
		{
			skip.textContent="登录成功";
			var href="\home.html?id="+user[1]+"&count="+user[0];
			window.setTimeout(function(){window.location.href=href;},2000);	
		}else{
			skip.innerHTML="ID或密码错误";
		}
		
		
	}